<?php
namespace Mentors\Model;
use Think\Model;

class MessageModel extends Model {

    protected $_validate = array (
		array('title','require','Title cannot be empty', 1),
		array('content','require','Descriptions cannot be empty', 1),
    );	

    protected $_auto = array (
		array('type','_type',Model::MODEL_BOTH,'callback'),
		array('createTime','time',Model::MODEL_INSERT,'function'),    
	);

	protected function _type(){
        return 1;
    }
}
?>